/*
 * @Description  :
 * @Autor        : guoxi
 * @Date         : 2022-07-26 15:20:59
 * @LastEditors  : Please set LastEditors
 * @LastEditTime : 2022-07-28 18:15:11
 * @FilePath     : \rpms\src\api\scientific.ts
 */
import http from "../utils/http/service";
// ----------------------------科研成果管理相关--------------------------------------------

// 新增科研
export const postScientificAdd = (data): any => {
  return http.post("/rdms-admin/scientific/add", data);
};

// 删除科研
export const postScientificDelete = (data): any => {
  return http.post(`/rdms-admin/scientific/delete/${data.id}`);
};

// 更新科研
export const postScientificUpdate = (data): any => {
  return http.post("/rdms-admin/scientific/update", data);
};

// 科研列表
export const postScientificList = (data): any => {
  return http.post("/rdms-admin/scientific/scientificList", data);
};

// 科研详情
export const getScientificInfo = (data): any => {
  return http.get(`/rdms-admin/scientific/info/${data}`);
};
// 专利列表
export const postPatentList = (data): any => {
  return http.post(`/rdms-admin/scientific-patent/list`, data);
};
// 论文列表
export const postPaperList = (data): any => {
  return http.post(`/rdms-admin/scientific-paper/list`, data);
};
// 专著列表
export const postBookList = (data): any => {
  return http.post(`/rdms-admin/scientific-book/list`, data);
};
// 标准列表
export const postStandardList = (data): any => {
  return http.post(`/rdms-admin/scientific-standard/list`, data);
};
// 科技奖励列表
export const postRewardsList = (data): any => {
  return http.post(`/rdms-admin/scientific-rewards/list`, data);
};
// 软件著作权列表
export const postSoftwareList = (data): any => {
  return http.post(`/rdms-admin/RdScientificSoftware/list `, data);
};
// 其他列表
export const postOtherList = (data): any => {
  return http.post(`/rdms-admin/scientific/scientificList `, data);
};

export const postPatentDelete = (data): any => {
  return http.post(`/rdms-admin/scientific-patent/delete/${data.id}`);
};
export const postSoftwareDelete = (data): any => {
  return http.post(`/rdms-admin/RdScientificSoftware/delete/${data.id}`);
};
export const postPapereDelete = (data): any => {
  return http.post(`/rdms-admin/scientific-paper/delete/${data.id}`);
};
export const postBookDelete = (data): any => {
  return http.post(`/rdms-admin/scientific-book/delete/${data.id}`);
};
export const postStandardDelete = (data): any => {
  return http.post(`/rdms-admin/scientific-standard/delete/${data.id}`);
};
export const postRewardsDelete = (data): any => {
  return http.post(`/rdms-admin/scientific-rewards/delete/${data.id}`);
};
